package com.ibm.cloud.banking.parameter.pricing.service;

import com.ibm.cloud.banking.annotation.PBS;
import com.ibm.cloud.banking.parameter.pricing.entity.PricingChargeParamVo;
import com.ibm.cloud.banking.parameter.pricing.entity.PricingChargeResultVo;
import com.ibm.cloud.banking.parameter.pricing.entity.ResultVo;
import com.ibm.cloud.invoker.PbsService;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@PBS(servNo = "PBS400001")
@Slf4j
public class PricingChargingService implements PbsService<PricingChargeParamVo, ResultVo<PricingChargeResultVo>> {
    @Autowired
    PricingChargingInnerServiceImpl pricingChargingInnerServiceImpl;

    @SneakyThrows
    @Override
    public ResultVo<PricingChargeResultVo> doService(PricingChargeParamVo pricingChargeParamVo) {
        return pricingChargingInnerServiceImpl.pricingChargingService(pricingChargeParamVo);
    }

    @Override
    public void compensate(PricingChargeParamVo data) {

    }
}
